<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>9-client相关</title>
		<style type="text/css">
			.box{
				width:1000px;
				height:300px;
				background:red;
				border:3px solid red;
			}
		</style>
	</head>
	<body>
		<div class="box"></div>
		<script type="text/javascript">
			var box = document.querySelector('.box');
			//console.log(box);
			console.log(box.clientLeft);//3
			console.log(box.clientTop);//3
			console.log(box.clientWidth);//1000
			console.log(box.clientHeight);//300
		</script>
	</body>
</html>
